package com.yjd.msg.comm.enums;

/**
 * Created by yjd-wap on 2018/1/22.
 */
public enum MsgOrderServiceEnum {

    PUBLIC_ORDER_SERVICE("pbulic_orderService","public应用");

    private String code;
    private String desc;

    private MsgOrderServiceEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static String getOrderServiceDesc(String code)throws Exception{
        String serverName = "";
        for(MsgOrderServiceEnum msgOrderServiceEnum : MsgOrderServiceEnum.values()){
            if(msgOrderServiceEnum.getCode().equals(code)){
                serverName = msgOrderServiceEnum.getDesc();
                break;
            }
        }
        return serverName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
